from tasks import add, addTemplateViewGenerateTask

# result = add.delay(2, 2)
result = addTemplateViewGenerateTask.delay("A", "")
print(result)

print(result.ready())

result.traceback

from tasks import app
from celery.result import AsyncResult

asy = AsyncResult(id=result.id, app=app)
print(asy.successful())

print(asy.get())
print(asy.failed())

print(asy.status)
